// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** getSseStream GET /api/ssSent */
export async function getSseStreamUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getSseStreamUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.SseEmitter>('/api/ssSent', {
    method: 'GET',
    headers: {
      'JWT': localStorage.getItem('loginUser') || 'manba',
    },
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
